﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using UnwiseSource.ServiceReference1;

namespace UnwiseSource
{
    public partial class currentLecture : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int lectureId = 0;
            if (int.TryParse(Request.QueryString["lecId"], out lectureId))
            {
                try
                {
                    Service1Client wsUnwiseSource = new Service1Client();
                    string SECID = Helper.getconfigparam("SECID", "");
                    //LecturesAndHeader result = wsUnwiseSource.Get
                    CreateLectureContent();
                }
                catch (Exception ex)
                {
                    Helper.LogErrorMsg(ex.ToString());
                }
            }
            else
            {
                Response.Redirect("lectures.aspx");
            }
        }

        private void CreateLectureContent()
        {
            HtmlGenericControl lectureContent = new HtmlGenericControl("div");
            lectureContent.InnerHtml = "<h1>Tva e lekciqta</h1>";
            lecture_conteiner.Controls.Add(lectureContent);
        }
    }
}